import request from '../request';


/**
 * 获取所有mv数据
 * @param {mv分类名称} area 
 * @param {页数} offset 
 * @param {条数} limit 
 */
export function getRecommendMv(area, offset, limit) {
    return request({
        method: 'get',
        url: 'mv/all',
        params: {
            area: area,
            offset: offset,
            limit: limit
        }
    })
}
/**
 * 获取最新mv
 * @param {mv分类名称} area
 * @param {条数} limit 
 */
export function getNewestMV(area, limit) {
    return request({
        method: 'get',
        url: 'mv/first',
        params: {
            area: area,
            limit: limit
        }
    })
}
/**
 * 
 * @param {视频id} id 
 * @param {视频分辨率} r 
 */
export function getMv(id, r) {
    return request({
        method: 'get',
        url: 'mv/url',
        params: {
            id: id,
            r: r
        }
    })
}
/**
 * mv详情
 * @param {mv的id} mvid 
 */
export function getMvDetail(mvid) {
    return request({
        method: 'get',
        url: 'mv/detail',
        params: {
            mvid: mvid,
        }
    })
}
/**
 * 网易mv
 * @param {条数} limit 
 */
export function getWangyiMv(limit) {
    return request({
        method: 'get',
        url: 'mv/exclusive/rcmd',
        params: {
            limit: limit,
        }
    })
}


